#include <Qt/qmessagebox.h>
#include "dvsclient_gui.h"
#include "Dlg_DevFind.h"

DVSClient_GUI::DVSClient_GUI(QWidget *parent, Qt::WFlags flags)
	: QMainWindow(parent, flags)
{
	ui.setupUi(this);
	QObject::connect( this->ui.action, SIGNAL(triggered()), this, SLOT(slots_ActDevFind()) );
	QObject::connect( this->ui.pushButton, SIGNAL(clicked()), this, SLOT(slots_TestBn()) );
}

DVSClient_GUI::~DVSClient_GUI()
{

}

void DVSClient_GUI::slots_ActDevFind()
{
	QDevFindDlg* dlg = new QDevFindDlg(this);
	dlg->init();
	dlg->exec();

	delete dlg;
	dlg = 0;
}

void DVSClient_GUI::slots_TestBn()
{
	QMessageBox::about( this, "123", "456" );
}
